<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

class Sku extends Model
{

    protected $table = 'skus';  //库名



    protected $fillable = [
        'sku',
        'name',
        'is_sale',
        'weight',
        'net_weight',
        'cute_l',
        'cute_w',
        'cute_h',
        'supplier_no',
        'purchase_cycle',
        'lot_size',
    ];



    public function category()
    {
        return $this->belongsTo(Category::class, 'category_id');
    }




}
